<div class="clr"></div>
<div id="lista-plikow-produktu-grupa-mini-edycja">
{section name=id loop=$pliki}
	<div class="lista-zdjec-oferty" id="plik-oferty-{$pliki[id].tafID}" style="width: 75px; float: left; padding: 5px;">
		<a style="cursor: pointer; position: absolute;" onclick="$('#pytanie-text-{$pliki[id].tafID}').dialog();" ><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_delete.gif"  title="Delete"  alt="del"></a>
		<!-- help -->
		<div id="pytanie-text-{$pliki[id].tafID}" style="display: none;" title="Delete a photo?">
			
			<p>Are you sure you delete the photo:?</p>
			<br/>
			 <input type="button" value="Tak" onclick="$.get('{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},KatalogTA,usunPlikProduktu,{$pliki[id].tafID}_{$produkt.tapID}.html', function(data){ldelim} usunieciePliku(data,{$pliki[id].tafID}); {rdelim});"/>
			 <input type="button" value="Nie" onclick="$('#pytanie-text-{$pliki[id].tafID}').dialog( 'destroy' );"/>
		</div>
		<!-- /help -->	
		
		<a class="thumbnail highslide" onclick="return hs.expand(this)" href="{$smarty.const.HTTP_URL}photo,/public/users/{$smarty.server.HTTP_HOST|replace:'www.':''}/KatalogTA/{$produkt.tapID}/{$pliki[id].tafID}_photo_ta.jpg,600,600,100.jpg" style="background-image: url({$smarty.const.HTTP_URL}photo,/public/users/{$smarty.server.HTTP_HOST|replace:'www.':''}/KatalogTA/{$produkt.tapID}/{$pliki[id].tafID}_photo_ta.jpg,60,60,100.jpg); width: 65px; height: 65px; _height:75px; float: left;" ></a>
		<div class="highslide-heading">{$produkt.tapNazwa}</div>
	</div>
{/section}
</div>

{literal}
<script>

function usunieciePliku(result, id){
	if(result == 1){		
		alert("The file was deleted successfully.");
		$('#pytanie-text-'+id).dialog( 'destroy' );
		$("#plik-oferty-"+id).remove();
	}else{
		alert(result);		
	}
}
</script>
{/literal}